package com.ellricky.baselib.ui.msg;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import com.andr.common.util.ResUtil;
import com.ellricky.baselib.R;
import com.ellricky.baselib.ui.base.BaseTabVpActivity;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class MsgTipActivity extends BaseTabVpActivity {

    @NonNull
    @Override
    public List<Fragment> getFragmentList() {
        List<Fragment> fragments = new ArrayList<>();
        fragments.add(MsgTipChildFragment.newInstance(0));
        fragments.add(MsgTipChildFragment.newInstance(1));
        return fragments;
    }

    @NonNull
    @Override
    public List<String> getTabTitleList() {
        return Arrays.asList(ResUtil.getStrArr(this, R.array.base_msg_tip));
    }

    @Override
    public int getTitleRes() {
        return R.string.base_msg_tip;
    }
}